
package com.jf.cloud.order.dto.multishop;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zz
 */
@Schema(description = "multishop-申请退款参数")
public class OrderRefundDTO {
    /**
     * 退款ID
     */
    @NotNull(message = "退款ID不能为空")
    private Long refundId;

    /**
     * 处理状态（2:同意，3:不同意）
     */
    @NotNull(message = "处理状态不能为空")
    private Integer refundSts;

    /**
     * 退款原因
     */
    private String rejectMessage;

    /**
     * 退款地址标识（ID）
     */
    private Long shopRefundAddrId;

    /**
     * 商家备注
     */
    private String sellerMsg;

    /**
     * 是否收到货
     */
    @NotNull(message = "是否收到货不能为空")
    private Boolean isReceived;

    /**
     * 供应商处理状态， -1.商家自行处理 0.供应商处理 1.供应商已同意 2.供应商已拒绝
     */
    @NotNull(message = "供应商处理状态， -1.商家自行处理 0.待供应商处理 1.供应商已同意 2.供应商已拒绝")
    @Min(value = -1,message = "最小只能为-1")
    @Max(value = 2,message = "最大只能为2")
    private Integer supplierHandleStatus;

    public Boolean getReceived() {
        return isReceived;
    }

    public void setReceived(Boolean received) {
        isReceived = received;
    }

    public Integer getSupplierHandleStatus() {
        return supplierHandleStatus;
    }

    public void setSupplierHandleStatus(Integer supplierHandleStatus) {
        this.supplierHandleStatus = supplierHandleStatus;
    }

    public Long getRefundId() {
        return refundId;
    }

    public void setRefundId(Long refundId) {
        this.refundId = refundId;
    }

    public Integer getRefundSts() {
        return refundSts;
    }

    public void setRefundSts(Integer refundSts) {
        this.refundSts = refundSts;
    }

    public String getRejectMessage() {
        return rejectMessage;
    }

    public void setRejectMessage(String rejectMessage) {
        this.rejectMessage = rejectMessage;
    }

    public Long getShopRefundAddrId() {
        return shopRefundAddrId;
    }

    public void setShopRefundAddrId(Long shopRefundAddrId) {
        this.shopRefundAddrId = shopRefundAddrId;
    }

    public String getSellerMsg() {
        return sellerMsg;
    }

    public void setSellerMsg(String sellerMsg) {
        this.sellerMsg = sellerMsg;
    }

    public Boolean getIsReceived() {
        return isReceived;
    }

    public void setIsReceived(Boolean received) {
        isReceived = received;
    }

    @Override
    public String toString() {
        return "OrderRefundDTO{" +
                "refundId=" + refundId +
                ", refundSts=" + refundSts +
                ", rejectMessage='" + rejectMessage + '\'' +
                ", shopRefundAddrId=" + shopRefundAddrId +
                ", sellerMsg='" + sellerMsg + '\'' +
                ", isReceived=" + isReceived +
                '}';
    }
}
